/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ModelLayer;

/**
 *
 * @author Henrik-iMac
 */
public class SalesLine {
    private int id;
    private int amount;
    private double price;
    private double totalPrice;
    private SalesOrder salesOrderId;
    private Product productId;

    public SalesLine() {
    }

    public SalesLine(int id, SalesOrder salesOrderId, Product productId) {
        this.id = id;
        this.salesOrderId = salesOrderId;
        this.productId = productId;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Product getProductId() {
        return productId;
    }

    public void setProductId(Product productId) {
        this.productId = productId;
    }

    public SalesOrder getSalesOrderId() {
        return salesOrderId;
    }

    public void setSalesOrderId(SalesOrder salesOrderId) {
        this.salesOrderId = salesOrderId;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalJPrice) {
        this.totalPrice = totalJPrice;
    }

    
}
